-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ipv6 disable check #847
Conversation
4d535d8
to
2a5d7bd
Compare
@evgeni Fixed up if you can review again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed testing in SatelliteQE/robottelo#15062
I just saw voxpupuli/facterdb#340 and noticed you can also read the sysctl. So technically you can enable it even if it's in |
No, you really can't, [root@centos9-stream ~]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.14.0-354.el9.x86_64 root=UUID=a91e762e-6199-45c4-8989-1bba94306968 ro no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop ipv6.disable=1
[root@centos9-stream ~]# sysctl -a |grep ipv6
[root@centos9-stream ~]# sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory
[root@centos9-stream ~]# ls -alh /proc/sys/net/ipv6/
ls: cannot access '/proc/sys/net/ipv6/': No such file or directory |
Ah, so you can enable/disable it at runtime if the kernel was booted with IPv6 support, but if it's in That makes me wonder if we need both checks. |
I don't think so. |
No description provided.